<html>
<head><meta charset="utf-8"><title>slow diagnostics? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html">slow diagnostics?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="241135776"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241135776" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241135776">(Jun 02 2021 at 11:27)</a>:</h4>
<p>I am getting textDocument/publishDiagnostics after ~100ms sending textDocument/didChange, is this expected?</p>



<a name="241136093"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136093" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136093">(Jun 02 2021 at 11:31)</a>:</h4>
<p>100ms for diagnostics doesn't seem that long to me</p>



<a name="241136129"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136129" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136129">(Jun 02 2021 at 11:32)</a>:</h4>
<p>does it happen while typing in <code>use</code> imports?</p>



<a name="241136193"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136193" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136193">(Jun 02 2021 at 11:32)</a>:</h4>
<p>yes</p>



<a name="241136262"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136262" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136262">(Jun 02 2021 at 11:33)</a>:</h4>
<p>then this is a known issue: <a href="https://github.com/rust-analyzer/rust-analyzer/issues/8636">https://github.com/rust-analyzer/rust-analyzer/issues/8636</a></p>



<a name="241136327"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136327" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136327">(Jun 02 2021 at 11:34)</a>:</h4>
<p>is the editor supposed to cache the diagnostics and update the ranges when editing?</p>



<a name="241136690"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/slow%20diagnostics%3F/near/241136690" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Manmeet Singh <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/slow.20diagnostics.3F.html#241136690">(Jun 02 2021 at 11:38)</a>:</h4>
<p>currently getting this <a href="/user_uploads/4715/N4xYKiQ-nZ1Rf8qVA-LY6gQD/move.gif">move.gif</a></p>
<div class="message_inline_image"><a href="/user_uploads/4715/N4xYKiQ-nZ1Rf8qVA-LY6gQD/move.gif" title="move.gif"><img src="/user_uploads/4715/N4xYKiQ-nZ1Rf8qVA-LY6gQD/move.gif"></a></div>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>